package pl.krzosekm.vehicleregister.dao;

import org.apache.log4j.Logger;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;


public abstract class BaseDAO extends HibernateDaoSupport {
    
    protected Logger log = Logger.getLogger(this.getClass().getName());
    
    /**
     * Method append '%' before and after string
     * @param input input String
     * @return String wrapped by percents
     */
    protected String appendPercents(String input){
       return  new StringBuilder().append("%").append(input).append("%").toString();        
    }

}
